package sunday.mapper.manager;

import org.springframework.stereotype.Repository;
import sunday.pojo.manager.Manager;
import sunday.pojo.manager.UpdateSpecialty;
import sunday.pojo.school.*;
import sunday.pojo.teacher.Teacher;

import java.util.List;
import java.util.Map;

/**
 * Created by yang on 2017/5/15.
 * At 15:51
 */
@Repository
public interface ManagerMapper {
    /**
     * 新增管理员
     *
     * @param manager
     * @return
     */
    int insert(Manager manager);

    /**
     * 查询管理员
     *
     * @param params
     * @return
     */
    List<Manager> select(Map<String, Object> params);

    /**
     *按名称查询专业，名称为空的时候查询所有专业
     * @param question 封装了专业名称
     * @return
     */
    List<SpeWithStu> selectSpecialty(SpeQuestion question);

    List<Specialty> getSpe(Specialty specialty);

    void delSpecialty(Specialty specialty);

    int  addSpecialty(Specialty specialty);
    int insertSpeBatch(List<Specialty> list);


    List<Student> selectStudent(Student student);

    void saveStudent(Student student);
    void updateStudent(Student student);
    void delStu(Student student);
    List<Course> selectCourse(Course course);

    void saveCourse(Course course);

    void delCou(Course course);

    void updateCourse(Course course);

    List<Teacher> selectTeacher(Teacher teacher);

    void saveTeacher(Teacher teacher);

    void updateTeacher(Teacher teacher);

    void delTeacher(Teacher teacher);
}
